#include "sha512.h"
#include <stdio.h>
#include <string.h>

int main()
{
    // b7e9474f589060e457cf0dcaa598e2fa0abbbc6dc760f1e3fe63d93892f75fa6654bfdc08c61e9796dd53a1e9a5e1eac824d262020be25caf495fc43b7740223
    unsigned char strBuf[] = "Hello Sha512";
    int nSize = strlen((char*)strBuf);
    unsigned char strOut[1024];
    Sha512Encrypt(strBuf, nSize, strOut);

    for (int i = 0; i < 64; i++)
    {
        printf("%02x", strOut[i]);
    }
    puts("");

    return 0;
}